package app.mvc.controller.data
{
	import flash.events.Event;
	import flash.filesystem.File;
	import flash.filesystem.FileMode;
	import flash.filesystem.FileStream;
	import flash.net.FileFilter;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class SaveFileCommand extends SimpleCommand implements ICommand
	{
		public function SaveFileCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			// TODO Auto Generated method stub
			super.execute(notification);
			
			var fileStringXML:XML = new XML("<root></root>");
			fileStringXML.appendChild(new XML("<file>file</file>"));
			
			var file:File=new File();
			file.save(fileStringXML,"123.xml");
		}
		
	}
}